package com.cqupt.sendMes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName(value = "task_record")
public class TaskRecord {
    @TableId(type = IdType.AUTO)
    private Integer id;

    //任务ID
    private Integer taskId;
    //任务名
    private String taskName;
    //用户ID
    private Integer userId;
    //用户名
        private String username;
    //请求内容
    private String requestContent;
    //任务返回结果
    private String responseContent;
    //任务执行结果
    private Integer taskResult;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
}
